import errorPage404 from '@/views/error/errorPage404.vue'

export const ErrorPage404 = errorPage404

const errorRouter: RouteConfigsTable = {
    path: '/error',
    redirect: '/error/403',
    meta: {
        icon: 'warning',
        title: '异常页面',
        rank: 9,
        showLink: false,
    },
    children: [
        {
            path: '/error/403',
            name: '403',
            component: () => import('@/views/error/errorPage403.vue'),
            meta: {
                title: '403',
                showLink: false,
            },
        },
        {
            path: '/error/404',
            name: '404',
            component: () => errorPage404,
            meta: {
                title: '404',
                showLink: false,
            },
        },
        {
            path: '/error/500',
            name: '500',
            component: () => import('@/views/error/errorPage500.vue'),
            meta: {
                title: '500',
                showLink: false,
            },
        },
    ],
}
export default errorRouter
